package org.xielei.designpatterns.behavioral.strategy;

/**
 * ConcreteStrategyOne
 *
 * @author xielei
 * @date 2020/8/6
 */
public class ConcreteStrategyOne implements Strategy{

    private static final String KEY = "strategy_one";

    @Override
    public void strategyMethod() {
        System.out.println("具体策略一被调用");
    }

    @Override
    public void afterPropertiesSet() {
        StrategyFactory.register(KEY, this);
    }
}
